package etnorservice.etnor_service.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2025/03/24/12:52
 **/
@Data
@TableName("menu_items")
public class MenuItemDomain implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer parentId;
    private String namezh;
    private String nameen;
    private String icon;
    private String badge;
    private String badgeClass;
    private String state;
    private String url;
    @TableField(exist = false)  // 标记该字段不存在于数据库表中
    private List<MenuItemDomain> children;
}